package com.yic.module.mes.controller.admin.mo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 生产排产创建 Request VO")
@Data
@ToString(callSuper = true)
public class MoBatchCreateReqVO {

    @Schema(description = "工厂", example = "14096")
    @NotNull(message = "工厂不能为空")
    private Long factoryId;

    @Schema(description = "生产车间", example = "19906")
    @NotNull(message = "生产车间不能为空")
    private Long workshopId;

    @Schema(description = "部门", example = "18136")
    @NotNull(message = "部门不能为空")
    private Long deptId;

    @Schema(description = "流水号类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "流水号类型不能为空")
    private Integer snType;

    @Schema(description = "排产明细", example = "18136")
    @NotEmpty(message = "排产明细不能为空")
    @Valid
    private List<MoCreateReqVO> moList;

}
